#!/bin/bash
g++ -std=c++17 -fPIC \
    $(pkg-config --cflags Qt5Core Qt5Sql Qt5Widgets) \
    -Iinclude \
    src/server/server.cpp \
    src/server/server_thread.cpp \
    src/server/log_utils.cpp \
    src/db/database.cpp \
    src/utils/sm3_utils.cpp \
    -o server \
    -lpthread -lsqlite3 -lgmssl \
    $(pkg-config --libs Qt5Core Qt5Sql Qt5Widgets)

